package com.lkm.app_ui.ui.second;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.lkm.app_ui.MBaseFragment;
import com.lkm.app_ui.R;
import com.lkm.app_ui.RunTimeData;
import com.lkm.comlib.help.ImageViewLoadHelp;
import com.lkm.market2_0.entity.OrganizationInfo;

import androidx.annotation.Nullable;




public class IdleFragment extends MBaseFragment {



    public static IdleFragment getInstance() {
        IdleFragment f = new IdleFragment();
        Bundle data = new Bundle();
        f.setArguments(data);
        return f;
    }

    @Override
    protected int configLayoutResID() {
        return R.layout.fragment_idle;
    }

    private ImageViewLoadHelp payImageViewLoadHelp;

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

        payImageViewLoadHelp = new ImageViewLoadHelp(getActivity(), Math.max(getResources().getDisplayMetrics().heightPixels, getResources().getDisplayMetrics().widthPixels), holdCycleHelp());
        payImageViewLoadHelp.setHasImagScaleType(ImageView.ScaleType.CENTER_INSIDE);
        payImageViewLoadHelp.setLoadingImagScaleType(ImageView.ScaleType.CENTER_INSIDE);
        payImageViewLoadHelp.setNotImagScaleType(ImageView.ScaleType.CENTER_INSIDE);

        OrganizationInfo organizationInfo = RunTimeData.organizationInfo;

//        payImageViewLoadHelp.setImage(((ImageView) findViewById(R.id.img_logo)), organizationInfo == null ? "" : organizationInfo.getDeviceBg());

    }

    @Override
    protected boolean configIsLockKey() {
        return false;
    }
}
